﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quail.Silverlight
{
    /// <summary>
    /// Interface used for SlvControl instances that have row data
    /// </summary>
    public interface ISlvControlWithRows
    {
        /// <summary>
        /// Gets the row count.
        /// </summary>
        /// <value>The row count.</value>
        int RowCount { get; }

        /// <summary>
        /// Gets the control's selector
        /// </summary>
        string Selector { get; }

        /// <summary>
        /// Gets the value from a give row/column
        /// </summary>
        /// <param name="row">the row to check</param>
        /// <param name="column">the column</param>
        /// <returns>the string value</returns>
        string GetRowColumnValue(int row, int column);

        /// <summary>
        /// Gets a hashtable for the controls
        /// </summary>
        Hashtable ControlHashtable { get; }
    }
}
